package com.itheima.sh.Homework02;


public class iphoneConstruction {
    private iphone s;

    public void service(iphone s) {
        this.s = s;
    }
    public void call(){
        System.out.println("正在使用价格为"+s.getPrice()+"元"+s.getColor()+"的"+s.getBrand()+"手机打电话");
    }

        public void sendMessage(){
            System.out.println("正在使用价格为"+s.getPrice()+"元"+s.getColor()+"的"+s.getBrand()+"手机打发短信");

    }
}


